<?php

# 拿货助手
use Illuminate\Support\Facades\Route;

# 退单登记
Route::namespace('Machine')->prefix('refund')->middleware('api')->group(function ($route) {
    $route->any('sign/list', RefundSignController::class.'@getList');
    $route->any('sign/save', RefundSignController::class.'@doSave');
    $route->any('sign/sync', RefundSignController::class.'@doSync');
    $route->any('sign/supply/info', RefundSignController::class.'@getSupplyRefundInfo');
    $route->any('sign/supply/total', RefundSignController::class.'@getSupplyAdvanceRefundTotal');
    $route->any('sign/advance/minus', RefundSignController::class.'@doMinusAdvanceRefundTotal');
    $route->any('sign/import', RefundSignController::class.'@doImport');
    $route->any('sign/goods/list', RefundSignController::class.'@getGoodsList');
    $route->any('sign/total/list', RefundSignTotalController::class.'@getList');
    $route->any('sign/total/save', RefundSignTotalController::class.'@doSave');
});
Route::namespace('Machine')->prefix('supply')->middleware('api')->group(function ($route) {
    $route->any('open/list', SupplyController::class.'@getSupplyUserList');
    $route->any('doing/list', SupplyController::class.'@getSupplyOrderGoods');
});
